package IO_Stream;

import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Scanner;

public class Outputstream2 {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("C:\\Users\\啦啦啦\\Desktop\\b.txt",true);
        //后面的true代表打开续写开关
        fos.write("\r\n".getBytes());
        //输入回车
        fos.write(new Scanner(System.in).next().getBytes());
        fos.close();
    }
}
